#!/usr/bin/env python
#First fork example

import os, time

print "Before the for, my PID is ", os.getpid()

pid = os.fork()

if pid:
    print "Hello from the parent. The child will be PID %d" % pid
    print "Sleeping 120 seconds..."

    time.sleep(120)


